Integrand size = 19, antiderivative size = 30 \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=-\frac {\cot \left (a d+b d \log \left (c x^n\right )\right )}{b d n}-\log (x) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3554, 8} \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=-\frac {\cot \left (a d+b d \log \left (c x^n\right )\right )}{b d n}-\log (x) \]
[In]
[Out]
Rule 8
Rule 3554
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \cot ^2(d (a+b x)) \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\cot \left (a d+b d \log \left (c x^n\right )\right )}{b d n}-\frac {\text {Subst}\left (\int 1 \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {\cot \left (a d+b d \log \left (c x^n\right )\right )}{b d n}-\log (x) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.10 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.70 \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=-\frac {\cot \left (a d+b d \log \left (c x^n\right )\right ) \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},-\tan ^2\left (a d+b d \log \left (c x^n\right )\right )\right )}{b d n} \]
[In]
[Out]
Time = 0.32 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.53
method | result | size |
derivativedivides | \(\frac {-\cot \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )+\frac {\pi }{2}-\operatorname {arccot}\left (\cot \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )\right )}{n b d}\) | \(46\) |
default | \(\frac {-\cot \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )+\frac {\pi }{2}-\operatorname {arccot}\left (\cot \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )\right )}{n b d}\) | \(46\) |
parallelrisch | \(\frac {-1-\ln \left (x \right ) b d n \tan \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{b d n \tan \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}\) | \(48\) |
risch | \(-\ln \left (x \right )-\frac {2 i}{d b n \left (\left (x^{n}\right )^{2 i b d} c^{2 i b d} {\mathrm e}^{d \left (-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )+b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )+2 i a \right )}-1\right )}\) | \(127\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 78 vs. \(2 (30) = 60\).
Time = 0.24 (sec) , antiderivative size = 78, normalized size of antiderivative = 2.60 \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=-\frac {b d n \log \left (x\right ) \sin \left (2 \, b d n \log \left (x\right ) + 2 \, b d \log \left (c\right ) + 2 \, a d\right ) + \cos \left (2 \, b d n \log \left (x\right ) + 2 \, b d \log \left (c\right ) + 2 \, a d\right ) + 1}{b d n \sin \left (2 \, b d n \log \left (x\right ) + 2 \, b d \log \left (c\right ) + 2 \, a d\right )} \]
[In]
[Out]
\[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=\int \frac {\cot ^{2}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}}{x}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 322 vs. \(2 (30) = 60\).
Time = 0.21 (sec) , antiderivative size = 322, normalized size of antiderivative = 10.73 \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=\frac {{\left (b d \cos \left (2 \, b d \log \left (c\right )\right )^{2} + b d \sin \left (2 \, b d \log \left (c\right )\right )^{2}\right )} n \cos \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )^{2} \log \left (x\right ) + {\left (b d \cos \left (2 \, b d \log \left (c\right )\right )^{2} + b d \sin \left (2 \, b d \log \left (c\right )\right )^{2}\right )} n \log \left (x\right ) \sin \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )^{2} + b d n \log \left (x\right ) - 2 \, {\left (b d n \cos \left (2 \, b d \log \left (c\right )\right ) \log \left (x\right ) - \sin \left (2 \, b d \log \left (c\right )\right )\right )} \cos \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right ) + 2 \, {\left (b d n \log \left (x\right ) \sin \left (2 \, b d \log \left (c\right )\right ) + \cos \left (2 \, b d \log \left (c\right )\right )\right )} \sin \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )}{2 \, b d n \cos \left (2 \, b d \log \left (c\right )\right ) \cos \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right ) - 2 \, b d n \sin \left (2 \, b d \log \left (c\right )\right ) \sin \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right ) - {\left (b d \cos \left (2 \, b d \log \left (c\right )\right )^{2} + b d \sin \left (2 \, b d \log \left (c\right )\right )^{2}\right )} n \cos \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )^{2} - {\left (b d \cos \left (2 \, b d \log \left (c\right )\right )^{2} + b d \sin \left (2 \, b d \log \left (c\right )\right )^{2}\right )} n \sin \left (2 \, b d \log \left (x^{n}\right ) + 2 \, a d\right )^{2} - b d n} \]
[In]
[Out]
Timed out. \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=\text {Timed out} \]
[In]
[Out]
Time = 27.93 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.30 \[ \int \frac {\cot ^2\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx=-\ln \left (x\right )-\frac {2{}\mathrm {i}}{b\,d\,n\,\left ({\mathrm {e}}^{a\,d\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,d\,2{}\mathrm {i}}-1\right )} \]
[In]
[Out]